<?php
/* สคริ๊ปนี้ใช้ในการเช็ค ว่าล็อกอินหรือยัง ให้นำสคริ๊ปนี้ไปไว้ที่หน้าที่คุณต้องการให้เช็ค */
session_start();
if (!isset($_SESSION['login_true'])){
     header("Location:login.php");
     exit;
}
/* จบการเช็ค */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php
include("config.inc.php") ;
mysql_select_db($db) ;

$result = mysql_query("select * from member where user='$_SESSION[login_true]'") or die ("Err Can not to result");
$dbarr = mysql_fetch_array($result) ;

?>

<style type="text/css">
<!--
#apDiv1 {
	position: absolute;
	width: 325px;
	height: 321px;
	z-index: 1;
	left: 0px;
	top: 13px;
	background-image: url(/ebook/img/login.png);
}
.style3 {
	color: #999999;
	font-family: Arial, Helvetica, sans-serif;
}
h1,h2,h3,h4,h5,h6 {
	font-family: Arial, Helvetica, sans-serif;
}
.style31 {color: #999999;
	font-family: Arial, Helvetica, sans-serif;
}
.style31 {color: #333333}
body,td,th {
	font-size: 12px;
}
a:link {
	color: #F00;
}
-->
</style>
</head>

<body>

<div id="apDiv1">
  <div align="center">
    <label></label>
    <p align="left"></p>
    <p align="left"></p>
    <p align="left"></p>
    <p align="left"></p>
    <form name="checkForm" action="login_check.php" method="post" onSubmit="return check();">
      <table width="94%" height="295" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="1%" height="154">&nbsp;</td>
          <td width="30%">&nbsp;</td>
          <td width="3%">&nbsp;</td>
          <td width="66%" valign="bottom"><img src="image/address-book-icon.png" width="97" height="125" /></td>
        </tr>
        <tr>
          <td height="18">&nbsp;</td>
          <td><div align="right" class="style3"></div></td>
          <td>&nbsp;</td>
          <td></td>
        </tr>
        <tr>
          <td height="15">&nbsp;</td>
          <td><div align="right" class="style31">
            <p class="style3"><br />
            </p>
          </div></td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="54">&nbsp;</td>
          <td colspan="3"><div align="right">
            <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="40"><a target="_blank"></td>
                <td width="73"><a href="logout.php"><img src="image/button/login_button_04.png" alt="" width="73" height="46" /></a></td>
                <td width="87">&nbsp;</td>
              </tr>
            </table>
          </div></td>
        </tr>
        <tr>
          <td height="54">&nbsp;</td>
          <td colspan="3" align="center" valign="top">&nbsp;</td>
        </tr>
      </table>
    </form>
    <p align="left">&nbsp;</p>
    <p align="left">&nbsp;</p>
    <p align="left">&nbsp;</p>
    <p align="left">&nbsp;</p>
    <p align="left">&nbsp;</p>
  </div>
</div>
</body>
</html>
